package com.qyhl.webtv.commonlib.entity.act;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created  on 2017/12/6.
 *
 * @author helin
 * 活动
 */

public class ActivityBean implements Parcelable {
    /**
     * ID
     */
    private Integer id;
    /**
     * 是否可以超额，0可以
     */
    private Integer isExcess;
    /**
     * 活动名称
     */
    private String actName;

    /**
     * 编号
     */
    private String code;

    /**
     * 标签
     */
    private Integer tag;

    /**
     * 人数
     */
    private Integer peopleNumber;

    /**
     * 摘要
     */
    private String digest;

    /**
     * 海报地址
     */
    private String posterUrl;

    /**
     * 活动地址
     */
    private String address;

    /**
     * 详情
     */
    private String detail;

    /**
     * 站点
     */
    private Integer siteId;

    /**
     * 评论规则
     */
    private Integer commentRule;

    /**
     * 创建人昵称
     */
    private String creatorNickName;

    /**
     * 创建人头像地址
     */
    private String creatorAvatar;

    /**
     * 创建人登录账号
     */
    private String creatorUserName;

    /**
     * 活动结果
     */
    private String result;

    /**
     * 活动结果展示
     */
    private Integer showResult;

    /**
     * 是否开启评论
     */
    private Integer isComment;

    /**
     * 是否开启相册
     */
    private Integer isAlbum;

    /**
     * 是否开启投票
     */
    private Integer isVote;

    /**
     * 是否开启报名
     */
    private Integer isApply;

    /**
     * 是否开启选手
     */
    private Integer isPlayer;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 浏览量
     */
    private Long pageViews;

    /**
     * 报名开始时间
     */
    private String applyStartTime;

    /**
     * 报名截止时间
     */
    private String applyEndTime;

    /**
     * 创建时间
     */
    private String createTime;

    /**
     * 活动开始时间
     */
    private String startTime;

    /**
     * 活动结束时间
     */
    private String endTime;

    /**
     * 发布时间
     */
    private String publishTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getActName() {
        return actName;
    }

    public void setActName(String actName) {
        this.actName = actName;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getTag() {
        return tag;
    }

    public void setTag(Integer tag) {
        this.tag = tag;
    }

    public Integer getShowResult() {
        return showResult;
    }

    public void setShowResult(Integer showResult) {
        this.showResult = showResult;
    }

    public Integer getPeopleNumber() {
        return peopleNumber;
    }

    public void setPeopleNumber(Integer peopleNumber) {
        this.peopleNumber = peopleNumber;
    }

    public String getDigest() {
        return digest;
    }

    public void setDigest(String digest) {
        this.digest = digest;
    }

    public String getPosterUrl() {
        return posterUrl;
    }

    public void setPosterUrl(String posterUrl) {
        this.posterUrl = posterUrl;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public Integer getSiteId() {
        return siteId;
    }
    public Integer getIsExcess() {
        return isExcess;
    }

    public void setIsExcess(Integer isExcess) {
        this.isExcess = isExcess;
    }
    public void setSiteId(Integer siteId) {
        this.siteId = siteId;
    }

    public Integer getCommentRule() {
        return commentRule;
    }

    public void setCommentRule(Integer commentRule) {
        this.commentRule = commentRule;
    }

    public String getCreatorNickName() {
        return creatorNickName;
    }

    public void setCreatorNickName(String creatorNickName) {
        this.creatorNickName = creatorNickName;
    }

    public String getCreatorAvatar() {
        return creatorAvatar;
    }

    public void setCreatorAvatar(String creatorAvatar) {
        this.creatorAvatar = creatorAvatar;
    }

    public String getCreatorUserName() {
        return creatorUserName;
    }

    public void setCreatorUserName(String creatorUserName) {
        this.creatorUserName = creatorUserName;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public Integer getIsComment() {
        return isComment;
    }

    public void setIsComment(Integer isComment) {
        this.isComment = isComment;
    }

    public Integer getIsAlbum() {
        return isAlbum;
    }

    public void setIsAlbum(Integer isAlbum) {
        this.isAlbum = isAlbum;
    }

    public Integer getIsVote() {
        return isVote;
    }

    public void setIsVote(Integer isVote) {
        this.isVote = isVote;
    }

    public Integer getIsApply() {
        return isApply;
    }

    public void setIsApply(Integer isApply) {
        this.isApply = isApply;
    }

    public Integer getIsPlayer() {
        return isPlayer;
    }

    public void setIsPlayer(Integer isPlayer) {
        this.isPlayer = isPlayer;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getPageViews() {
        return pageViews;
    }

    public void setPageViews(Long pageViews) {
        this.pageViews = pageViews;
    }

    public String getApplyStartTime() {
        return applyStartTime;
    }

    public void setApplyStartTime(String applyStartTime) {
        this.applyStartTime = applyStartTime;
    }

    public String getApplyEndTime() {
        return applyEndTime;
    }

    public void setApplyEndTime(String applyEndTime) {
        this.applyEndTime = applyEndTime;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(String publishTime) {
        this.publishTime = publishTime;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeValue(this.id);
        dest.writeString(this.actName);
        dest.writeString(this.code);
        dest.writeValue(this.tag);
        dest.writeValue(this.peopleNumber);
        dest.writeString(this.digest);
        dest.writeString(this.posterUrl);
        dest.writeString(this.detail);
        dest.writeValue(this.siteId);
        dest.writeValue(this.isExcess);
        dest.writeValue(this.commentRule);
        dest.writeString(this.creatorNickName);
        dest.writeString(this.creatorAvatar);
        dest.writeString(this.creatorUserName);
        dest.writeString(this.result);
        dest.writeValue(this.isComment);
        dest.writeValue(this.isAlbum);
        dest.writeValue(this.isVote);
        dest.writeValue(this.showResult);
        dest.writeValue(this.isApply);
        dest.writeValue(this.isPlayer);
        dest.writeValue(this.status);
        dest.writeValue(this.pageViews);
        dest.writeString(this.applyStartTime);
        dest.writeString(this.applyEndTime);
        dest.writeString(this.createTime);
        dest.writeString(this.startTime);
        dest.writeString(this.endTime);
        dest.writeString(this.publishTime);
    }

    protected ActivityBean(Parcel in) {
        this.id = (Integer) in.readValue(Integer.class.getClassLoader());
        this.actName = in.readString();
        this.code = in.readString();
        this.tag = (Integer) in.readValue(Integer.class.getClassLoader());
        this.peopleNumber = (Integer) in.readValue(Integer.class.getClassLoader());
        this.digest = in.readString();
        this.posterUrl = in.readString();
        this.detail = in.readString();
        this.siteId = (Integer) in.readValue(Integer.class.getClassLoader());
        this.showResult = (Integer) in.readValue(Integer.class.getClassLoader());
        this.commentRule = (Integer) in.readValue(Integer.class.getClassLoader());
        this.creatorNickName = in.readString();
        this.creatorAvatar = in.readString();
        this.creatorUserName = in.readString();
        this.isExcess = (Integer) in.readValue(Integer.class.getClassLoader());
        this.result = in.readString();
        this.isComment = (Integer) in.readValue(Integer.class.getClassLoader());
        this.isAlbum = (Integer) in.readValue(Integer.class.getClassLoader());
        this.isVote = (Integer) in.readValue(Integer.class.getClassLoader());
        this.isApply = (Integer) in.readValue(Integer.class.getClassLoader());
        this.isPlayer = (Integer) in.readValue(Integer.class.getClassLoader());
        this.status = (Integer) in.readValue(Integer.class.getClassLoader());
        this.pageViews = (Long) in.readValue(Long.class.getClassLoader());
        this.applyStartTime = in.readString();
        this.applyEndTime = in.readString();
        this.createTime = in.readString();
        this.startTime = in.readString();
        this.endTime = in.readString();
        this.publishTime = in.readString();
    }

    public static final Creator<ActivityBean> CREATOR = new Creator<ActivityBean>() {
        @Override
        public ActivityBean createFromParcel(Parcel source) {
            return new ActivityBean(source);
        }

        @Override
        public ActivityBean[] newArray(int size) {
            return new ActivityBean[size];
        }
    };
}
